package ClientsAndHotels.types;

import java.io.Serializable;
import java.util.Date;

public class Room implements Serializable {

    private final int roomId;
    private final int placeFor;
    private final double price;

    public Room(int roomId, int placeFor, double price) {
        this.roomId = roomId;
        this.placeFor = placeFor;
        this.price = price;
    }

    public int getRoomId() {
        return roomId;
    }

    public int getPlaceFor() {
        return placeFor;
    }

    public double getPrice() {
        return price;
    }

    @Override
    public String toString() {
        return "(" + roomId + ", " + placeFor + ", " + price + ")";
    }
    
    public boolean equals(Room other) {
        return other.getRoomId() == this.roomId;
    }
}
